<?php
session_start();
require_once '../header.php';
function __autoload($className)
	{
    	require_once('../class/' . $className . '.class.php');
	}
session::need_member();
$Plan=$_GET["plan"];
$checkVer=verify::check($Plan);
if($checkVer=='0')
{
	if($Plan=="our")
	{
		$GetCountry=database::LimitQuery('ccinfo',array(
		'select' => 'distinct country',
		'condition' => array(
		'userid' => 0,
		'orderid' => 0
		)
		));
		$NameCountry=null;
		?>
	<select name="country" id="country" onchange="javascript:findstate();">
	<option value="" >All</option>
	<?php
		foreach($GetCountry as $ShowCountry)
		{
			$country=$ShowCountry['country'];
			$rand=rand(100,300);
			if($country=='us')
			{
				$rand=$rand*10;
			}
			$NameCountry=$country."(".$rand.")";
			echo "<option value='$country' >$NameCountry</option>";
		
		}

	
?>
</select>
<?php 
}
else
{
	$GetCountry=user::searchAgentCountry($Plan);
	
	?>
	<select id="country" name="country" onchange="javascript:findstate();">
	<option value="all" >All</option>
	<?php echo $GetCountry;?>
	</select>
	<?php 
}

}
?>